setlocal
echo off
@REM set cmake_bin="D:\software\msvc\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe"
set cmake_bin="cmake路径"
call setup.bat %build_type%
set build_dir_name=deploy
set build_type=Release

set script_dir=%~dp0
set build_dir=%script_dir%%build_dir_name%
rd /S /Q %build_dir%
if not exist %build_dir% md %build_dir%

if NOT DEFINED EXCHANE_SDK (
    set EXCHANE_SDK=%script_dir%..\
)

call %cmake_bin% -DCMAKE_BUILD_TYPE:STRING=%build_type%  -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE --no-warn-unused-cli -S%script_dir% -B%build_dir%
call %cmake_bin%  --build %build_dir% --config %build_type%  -j 20 

endlocal